<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE>
<html>
<head>
<base href="<%=basePath%>">

<title>添加修改文章</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<%=path %>/css/mine.css" type="text/css" rel="stylesheet">
<link href="<%=path %>/css/custom.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/dream_plugins.js"></script>
<script type="text/javascript" src="<%=path %>/js/ArticleManagement.js"></script>
<script type="text/javascript" src="<%=path %>/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="<%=path %>/plugins/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="gbk" src="<%=path %>/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>


<body>
	<div class="div_head">
		<span> <span style="float:left">当前位置是：文章管理  》添加修改文章</span> <span
			style="float:right;margin-right: 8px;font-weight: bold"> <a
				style="text-decoration: none" href="#">【主页】</a>
		</span>
		</span>
	</div>
	<div></div>

	<div style="margin: 10px 5px">
		<form id="article_form" name="article_form" action="#" method="post" enctype="multipart/form-data">
			<s:set value="#request.Article" var="t"></s:set>
			<table border="1" width="100%" class="table_a" style="font-size: 12px;">
				<tr>
					<td style="width:200px;">文章标题（中文）
						<input type="hidden" id="CId" name="tbarticle.CId" value="${t.CId }" />
					</td>
					<td><input type="text" name="tbarticle.CTitle" class="longtext" value="${t.CTitle }" /></td>
				</tr>
				<tr>
					<td>文章标题（英文）</td>
					<td><input type="text" name="tbarticle.CTitlee" class="longtext" value="${t.CTitlee }" /></td>
				</tr>
				<tr>
					<td>文章内容（中文）</td>
					<td>
						<textarea rows="" cols="" name="content" id="zheditor" style="width:100%;">${request.ZhData }</textarea>
					</td>
				</tr>
				<tr>
					<td>文章内容（英文）</td>
					<td>
						<textarea rows="" cols="" name="contente" id="eneditor" style="width:100%;height:100px;">${request.EnData }</textarea>
					</td>
				</tr>
				<tr>
					<td>文章类别</td>
					<td>
						<select id="CSortid" name="tbarticle.CSortid">
							<option value="">--请选择文章类别--</option>
							<s:iterator value="#request.TbArticleSort" var="tas">
								<option value="${tas.CName }">${tas.CName }</option>
							</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="button" 
					onclick="SaveArticleManagement('article_form', '<%=path %>/ArticleManagement_ArticleOperation?opt=${request.Opt }');" value="保存">
					<input type="button" value="重置" onclick="article_form.reset();" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
<script type="text/javascript">
    var zheditor = new baidu.editor.ui.Editor({
    	UEDITOR_HOME_URL : '/CMSProject/plugins/ueditor/',
    	autoClearinitialContent : false,
    	iframeCssUrl : '/CMSProject/plugins/ueditor/default/iframe.css',
    	textarea:'content',
    	enableAutoSave: false,
    	autoHeightEnabled: false,
        fullscreen : false, //是否开启初始化时即全屏，默认关闭
        toolbars:[
                  ['fullscreen', 'source', '|', 'undo', 'redo', '|',
                      'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 
                      'formatmatch', 'hougelou', 'autotypeset', 'blockquote', 'pasteplain', 
                      '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                      'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                      'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                      'directionalityltr', 'directionalityrtl', 'indent', '|',
                      'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                      'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                      'simpleupload','insertimage', 'emotion', 'attachment', 'map', 'insertframe', 'pagebreak', 'background', '|',
                      'horizontal', 'date', 'time', 'spechars', 'snapscreen', '|',
                      'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 
                      'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
                      'preview', 'searchreplace', 'help']
              ]
    });
    zheditor.render('zheditor');
    var eneditor = new baidu.editor.ui.Editor({
    	UEDITOR_HOME_URL : '/CMSProject/plugins/ueditor/',
    	autoClearinitialContent : false,
    	iframeCssUrl : '/CMSProject/plugins/ueditor/default/iframe.css',
    	textarea:'content',
    	enableAutoSave: false,
    	autoHeightEnabled: false,
        fullscreen : false, //是否开启初始化时即全屏，默认关闭
        toolbars:[
                  ['fullscreen', 'source', '|', 'undo', 'redo', '|',
                      'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 
                      'formatmatch', 'hougelou', 'autotypeset', 'blockquote', 'pasteplain', 
                      '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                      'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                      'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                      'directionalityltr', 'directionalityrtl', 'indent', '|',
                      'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                      'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                      'simpleupload','insertimage', 'emotion', 'attachment', 'map', 'insertframe', 'pagebreak', 'background', '|',
                      'horizontal', 'date', 'time', 'spechars', 'snapscreen', '|',
                      'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 
                      'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
                      'preview', 'searchreplace', 'help']
              ]
    });
    eneditor.render('eneditor');
</script>
</html>
